import classNames from "classnames";
import "./index.scss";
function XtxButton({
  children,
  size = "middle",
  type = "default",
  style,
  emit,
}: {
  children: any;
  size?: string;
  type: string;
  style?: any;
  emit: any;
}) {
  const styleCustom = { ...style };
  return (
    <>
      <button
        style={styleCustom}
        className={classNames(`xtx-button ellipsis ${size} ${type}`)}
        onClick={emit}
      >
        {children}
      </button>
    </>
  );
}
export default XtxButton;
